using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN PeopleEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: PeopleEntity</para>
	/// <para>Description: ClassPeopleEntity store data of table People</para>
	///</summary>

	[Serializable]
	public partial class PeopleEntity{


		private bool _InternalChangedIsNullPersonId=true;
		private bool _IsNullPersonId=true;
		private bool _InternalChangedIsNullPersonCode=true;
		private bool _IsNullPersonCode=true;
		private bool _InternalChangedIsNullFullName=true;
		private bool _IsNullFullName=true;
		private bool _InternalChangedIsNullOrganizationId=true;
		private bool _IsNullOrganizationId=true;
		private bool _InternalChangedIsNullGender=true;
		private bool _IsNullGender=true;
		private bool _InternalChangedIsNullBirthDay=true;
		private bool _IsNullBirthDay=true;
		private bool _InternalChangedIsNullAddress=true;
		private bool _IsNullAddress=true;
		private bool _InternalChangedIsNullPhone=true;
		private bool _IsNullPhone=true;
		private bool _InternalChangedIsNullEmail=true;
		private bool _IsNullEmail=true;
		private bool _InternalChangedIsNullPositionId=true;
		private bool _IsNullPositionId=true;
		private bool _InternalChangedIsNullStartDate=true;
		private bool _IsNullStartDate=true;
		private bool _InternalChangedIsNullNote=true;
		private bool _IsNullNote=true;
		private bool _InternalChangedIsNullPersonTypeId=true;
		private bool _IsNullPersonTypeId=true;
		private bool _InternalChangedIsNullUserId=true;
		private bool _IsNullUserId=true;
		private int _PersonId;
		private string _PersonCode;
		private string _FullName;
		private int _OrganizationId;
		private Byte _Gender;
		private DateTime _BirthDay;
		private string _Address;
		private string _Phone;
		private string _Email;
		private int _PositionId;
		private DateTime _StartDate;
		private string _Note;
		private int _PersonTypeId;
		private int _UserId;
		[XmlElement(ElementName = "IsNullPersonId")]
		public bool IsNullPersonId{
			get{return _IsNullPersonId;}
			set{if(!_InternalChangedIsNullPersonId)_IsNullPersonId=value;}
		}
		[XmlElement(ElementName = "IsNullPersonCode")]
		public bool IsNullPersonCode{
			get{return _IsNullPersonCode;}
			set{if(!_InternalChangedIsNullPersonCode)_IsNullPersonCode=value;}
		}
		[XmlElement(ElementName = "IsNullFullName")]
		public bool IsNullFullName{
			get{return _IsNullFullName;}
			set{if(!_InternalChangedIsNullFullName)_IsNullFullName=value;}
		}
		[XmlElement(ElementName = "IsNullOrganizationId")]
		public bool IsNullOrganizationId{
			get{return _IsNullOrganizationId;}
			set{if(!_InternalChangedIsNullOrganizationId)_IsNullOrganizationId=value;}
		}
		[XmlElement(ElementName = "IsNullGender")]
		public bool IsNullGender{
			get{return _IsNullGender;}
			set{if(!_InternalChangedIsNullGender)_IsNullGender=value;}
		}
		[XmlElement(ElementName = "IsNullBirthDay")]
		public bool IsNullBirthDay{
			get{return _IsNullBirthDay;}
			set{if(!_InternalChangedIsNullBirthDay)_IsNullBirthDay=value;}
		}
		[XmlElement(ElementName = "IsNullAddress")]
		public bool IsNullAddress{
			get{return _IsNullAddress;}
			set{if(!_InternalChangedIsNullAddress)_IsNullAddress=value;}
		}
		[XmlElement(ElementName = "IsNullPhone")]
		public bool IsNullPhone{
			get{return _IsNullPhone;}
			set{if(!_InternalChangedIsNullPhone)_IsNullPhone=value;}
		}
		[XmlElement(ElementName = "IsNullEmail")]
		public bool IsNullEmail{
			get{return _IsNullEmail;}
			set{if(!_InternalChangedIsNullEmail)_IsNullEmail=value;}
		}
		[XmlElement(ElementName = "IsNullPositionId")]
		public bool IsNullPositionId{
			get{return _IsNullPositionId;}
			set{if(!_InternalChangedIsNullPositionId)_IsNullPositionId=value;}
		}
		[XmlElement(ElementName = "IsNullStartDate")]
		public bool IsNullStartDate{
			get{return _IsNullStartDate;}
			set{if(!_InternalChangedIsNullStartDate)_IsNullStartDate=value;}
		}
		[XmlElement(ElementName = "IsNullNote")]
		public bool IsNullNote{
			get{return _IsNullNote;}
			set{if(!_InternalChangedIsNullNote)_IsNullNote=value;}
		}
		[XmlElement(ElementName = "IsNullPersonTypeId")]
		public bool IsNullPersonTypeId{
			get{return _IsNullPersonTypeId;}
			set{if(!_InternalChangedIsNullPersonTypeId)_IsNullPersonTypeId=value;}
		}
		[XmlElement(ElementName = "IsNullUserId")]
		public bool IsNullUserId{
			get{return _IsNullUserId;}
			set{if(!_InternalChangedIsNullUserId)_IsNullUserId=value;}
		}
		[XmlElement(ElementName = "PersonId")]
		public int PersonId{
			get{return _PersonId;}
			set{
				_PersonId=value;
				if(_PersonId!=null){
					_IsNullPersonId=false;
					_InternalChangedIsNullPersonId=true;
				}
			}
		}
		[XmlElement(ElementName = "PersonCode")]
		public string PersonCode{
			get{return _PersonCode;}
			set{
				_PersonCode=value;
				if(_PersonCode!=null){
					_IsNullPersonCode=false;
					_InternalChangedIsNullPersonCode=true;
				}
			}
		}
		[XmlElement(ElementName = "FullName")]
		public string FullName{
			get{return _FullName;}
			set{
				_FullName=value;
				if(_FullName!=null){
					_IsNullFullName=false;
					_InternalChangedIsNullFullName=true;
				}
			}
		}
		[XmlElement(ElementName = "OrganizationId")]
		public int OrganizationId{
			get{return _OrganizationId;}
			set{
				_OrganizationId=value;
				if(_OrganizationId!=null){
					_IsNullOrganizationId=false;
					_InternalChangedIsNullOrganizationId=true;
				}
			}
		}
		[XmlElement(ElementName = "Gender")]
		public Byte Gender{
			get{return _Gender;}
			set{
				_Gender=value;
				if(_Gender!=null){
					_IsNullGender=false;
					_InternalChangedIsNullGender=true;
				}
			}
		}
		[XmlElement(ElementName = "BirthDay")]
		public DateTime BirthDay{
			get{return _BirthDay;}
			set{
				_BirthDay=value;
				if(_BirthDay!=null){
					_IsNullBirthDay=false;
					_InternalChangedIsNullBirthDay=true;
				}
			}
		}
		[XmlElement(ElementName = "Address")]
		public string Address{
			get{return _Address;}
			set{
				_Address=value;
				if(_Address!=null){
					_IsNullAddress=false;
					_InternalChangedIsNullAddress=true;
				}
			}
		}
		[XmlElement(ElementName = "Phone")]
		public string Phone{
			get{return _Phone;}
			set{
				_Phone=value;
				if(_Phone!=null){
					_IsNullPhone=false;
					_InternalChangedIsNullPhone=true;
				}
			}
		}
		[XmlElement(ElementName = "Email")]
		public string Email{
			get{return _Email;}
			set{
				_Email=value;
				if(_Email!=null){
					_IsNullEmail=false;
					_InternalChangedIsNullEmail=true;
				}
			}
		}
		[XmlElement(ElementName = "PositionId")]
		public int PositionId{
			get{return _PositionId;}
			set{
				_PositionId=value;
				if(_PositionId!=null){
					_IsNullPositionId=false;
					_InternalChangedIsNullPositionId=true;
				}
			}
		}
		[XmlElement(ElementName = "StartDate")]
		public DateTime StartDate{
			get{return _StartDate;}
			set{
				_StartDate=value;
				if(_StartDate!=null){
					_IsNullStartDate=false;
					_InternalChangedIsNullStartDate=true;
				}
			}
		}
		[XmlElement(ElementName = "Note")]
		public string Note{
			get{return _Note;}
			set{
				_Note=value;
				if(_Note!=null){
					_IsNullNote=false;
					_InternalChangedIsNullNote=true;
				}
			}
		}
		[XmlElement(ElementName = "PersonTypeId")]
		public int PersonTypeId{
			get{return _PersonTypeId;}
			set{
				_PersonTypeId=value;
				if(_PersonTypeId!=null){
					_IsNullPersonTypeId=false;
					_InternalChangedIsNullPersonTypeId=true;
				}
			}
		}
		[XmlElement(ElementName = "UserId")]
		public int UserId{
			get{return _UserId;}
			set{
				_UserId=value;
				if(_UserId!=null){
					_IsNullUserId=false;
					_InternalChangedIsNullUserId=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END PeopleEntityBase*****************************************/
	/*****************************************************************************************************/
}

